package com.gliese.renren.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.gargoylesoftware.htmlunit.html.HtmlAnchor;

public class RenrenUtil {
	public  static String  getIdFromHtmlAnchor (Pattern pattern ,HtmlAnchor ha){
		Matcher matcher = pattern.matcher(ha.getHrefAttribute());
		if(matcher.find()){
				return matcher.group(1);
		}else{
			return "232182315";
		}
	} 
}
